package MyByteStream2;

import java.io.FileInputStream;
import java.io.IOException;

public class ByteStreamDemo1 {
    public static void main(String[] args) throws IOException {
        //创建对象
        FileInputStream fis = new FileInputStream("csb.txt");
        //读取数据
        int read1 = fis.read();
        System.out.println(read1);
        int read2 = fis.read();
        System.out.println(read2);
        int read3 = fis.read();
        System.out.println(read3);
        int read4 = fis.read();
        System.out.println(read4);
        int read5 = fis.read();
        System.out.println(read5);
        //关闭资源
        fis.close();
    }
}
